package com.pro.controller;

import com.pro.pojo.JsRoleAuthority;
import com.pro.pojo.JsonData;
import com.pro.service.JsDeptAuthorityService;
import com.pro.service.JsRoleAuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author 祖铭泽
 * @Date 2022/2/22/0022
 * @description 用户权限控制层
 */
@RequestMapping(value = "/jsRoleAuthority")
@Controller
public class JsRoleAuthorityController {
    @Autowired
    private JsRoleAuthorityService jsRoleAuthorityService;
    /**
     * @Author 祖铭泽
     * @Date 2022/2/22/0022
     * @description 添加用户权限
     */
    @ResponseBody
    @RequestMapping(value = "/addUserAuthoritys")
    public JsonData addUserAuthoritys(JsRoleAuthority jsRoleAuthority){
        return jsRoleAuthorityService.addUserAuthoritys(jsRoleAuthority);
    }
}
